<script>
    window._deel = {
        ajaxpager: '',
        maillist: '',
        maillistCode: '',
        commenton: 0,
        roll: [1,1],
        tougaoContentmin: 200,
        tougaoContentmax: 5000,
    }
</script>
<div class="navbar">
    <h1 class="logo"><a href="<?php echo $config['site_url']?>" title="<?php echo $config['site_name']?>"><?php echo $config['site_name']?></a></h1>
    <ul class="nav">
        <li id="menu-item-5" class="menu-item menu-item-type-custom menu-item-object-custom <?php echo empty($type_id) ? 'current-menu-item current_page_item' : ''?> menu-item-home menu-item-5"><a href="<?php echo $config['site_url']?>">首页</a></li>
        <?php foreach($type as $v){?>
            <li id="menu-item-<?php echo $v['id']?>"
                class="menu-item menu-item-type-taxonomy menu-item-object-category <?php echo $v['id'] == $type_id ? 'current-menu-item current_page_item' : ''?> menu-item-<?php echo $v['id']?>"><a href="/category/<?php echo $v['id']?>"><?php echo $v['type_name']?></a></li>
        <?php } ?>
        <!--<li id="menu-item-505" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-has-children menu-item-505"><a href="http://www.awaimai.com/category/advanced">进阶</a>
            <ul class="sub-menu">
                <li id="menu-item-289" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-289"><a href="http://www.awaimai.com/category/server">服务器</a></li>
                <li id="menu-item-507" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-507"><a href="http://www.awaimai.com/category/advanced/git">Git</a></li>
                <li id="menu-item-508" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-508"><a href="http://www.awaimai.com/category/advanced/habbit">编程习惯</a></li>
                <li id="menu-item-506" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-506"><a href="http://www.awaimai.com/category/advanced/asp">ASP</a></li>
                <li id="menu-item-394" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-has-children menu-item-394"><a href="http://www.awaimai.com/category/cms">CMS</a>
                    <ul class="sub-menu">
                        <li id="menu-item-500" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-500"><a href="http://www.awaimai.com/category/cms/mediawiki">MediaWiki</a></li>
                        <li id="menu-item-501" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-501"><a href="http://www.awaimai.com/category/cms/opencart">Opencart</a></li>
                        <li id="menu-item-502" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-502"><a href="http://www.awaimai.com/category/cms/wordpress">WordPress</a></li>
                    </ul>
                </li>
            </ul>
        </li>-->

    </ul>

    <div class="menu pull-right">
        <form method="get" class="dropdown search-form" action="/tagArticle" >
            <input class="search-input" name="search" type="text" placeholder="输入关键字搜索" value="<?php echo $search?>" x-webkit-speech="">
            <input class="btn btn-success search-submit" type="submit" value="搜索">
            <ul class="dropdown-menu search-suggest"></ul>
        </form>
    </div>
</div>
</div>